package com.yc.cloud.openai.sse;

import com.plexpt.chatgpt.listener.SseStreamListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

@Slf4j
public class MySseListener extends SseStreamListener {

    public MySseListener(SseEmitter sseEmitter) {
        super(sseEmitter);
    }

    @Override
    public void onMsg(String message) {
        log.info("Received message: " + message);
        super.onMsg(message);
    }
}
